<!doctype html>
<html lang="en">
<head>
	<meta charset="ANSI" />
	<title>Zagovori diplom FERI</title>
	<link rel="stylesheet" href="styles.css" type="text/css" media="screen" />
	<link rel="stylesheet" type="text/css" href="print.css" media="print" />

			<style type="text/css" media="screen">
		h1.fontface {font: 32px/38px 'MichromaRegular', Arial, sans-serif;letter-spacing: 0;}

		p.style1 {font: 18px/27px 'MichromaRegular', Arial, sans-serif;}
		
		
		@font-face {
    font-family: 'MichromaRegular';
    src: url('Michroma-webfont.eot');
    src: url('Michroma-webfont.eot?#iefix') format('embedded-opentype'),
         url('Michroma-webfont.woff') format('woff'),
         url('Michroma-webfont.ttf') format('truetype'),
         url('Michroma-webfont.svg#MichromaRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}
	</style>


	<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>

      <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>


      <script type="text/javascript">

          function loadXMLDoc() {
              var xmlZahteva = new XMLHttpRequest();
              xmlZahteva.open("POST", "http://164.8.251.99:9793/services/cir2012/FeriZagovori?wsdl", false); 
              xmlZahteva.onreadystatechange = function () {
                  if (xmlZahteva.readyState == 4) {
                      var xmlOdgovor = xmlZahteva.responseText;
		
                      var razcleni = new DOMParser();
                      var dokumentXml = razcleni.parseFromString(xmlOdgovor, "application/xml");

                      var st = dokumentXml.getElementsByTagName("Zagovor"); 
                      
                      for (var i = 0; i < st.length; i++) {
                      //var povezava = dokumentXml.getElementsByTagName("zagovor")[i].getAttribute("povezava"); 
                      var zagovor = dokumentXml.getElementsByTagName("Zagovor")[i].childNodes[0].nodeValue; 
					  var ime = dokumentXml.getElementsByTagName("ImeKandidata")[i].childNodes[0].nodeValue;
					  var naslov = dokumentXml.getElementsByTagName("NaslovDiplomskegaDela")[i].childNodes[0].nodeValue;
                      document.getElementById("main").innerHTML += "<p><b>" + zagovor + ime + " </b></br>Naslov diplomskega dela:"+ naslov+ "</p></br>"; 
                      }         

                  }
              }

              xmlZahteva.setRequestHeader("SOAPAction", "FeriZagovori");
              xmlZahteva.setRequestHeader("Content-Type", "text/xml");
              var xml = '<?xml version="1.0" encoding="utf-8"?>' +
                 '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
                                'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
                                'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
                   '<soap:Body> ' +
                     '<FeriZagovori xmlns="http://services.mashup.wso2.org/FeriZagovori/"> ' +
                     '</FeriZagovori> ' +
                   '</soap:Body> ' +
                 '</soap:Envelope>';
              xmlZahteva.send(xml);
          }

            document.addEventListener("deviceready", loadXMLDoc, false);

        </script>
	
	
</head>
	<body>
		<header>
			<div class="container1">
				<!--start title-->
				<h1 class="fontface" id="title">SKUPINA HTML5</h1>
				<!--end title-->
			</div>    
		</header>
		<!--end header-->
	
		<nav>
			<div class="menu">
			    <ul>
				    <li><a href="index.html">Domov</a></li>
				    <li><a href="vreme.html">Vreme</a></li>
				    <li><a href="oglasna.html">Oglasna deska FERI</a></li>
				    <li><a href="forum.html">Forum FERI</a></li>
				    <li><a href="aips.html">Aips</a></li>
					<li><a href="novice_um.html">Novice UM</a></li>
					<li><a href="stuk.html">Stuk</a></li>
					<li><a href="soum.html">SOUM</a></li>
					<li><a href="zagovori.html">Zagovori diplom</a></li>
			    </ul>
			</div>
		</nav>
		<div id="wrapper"><!-- #wrapper -->
			<section id="main"><!-- #main content and sidebar area -->
				<aside id="sidebar1"><!-- sidebar1 -->
						<br><br><br>	
								<h3>Povezave </h3><br>
							<ul>
								<li><a href="http://www.feri.uni-mb.si/podrocje.aspx">FERI</a></li>
								<li><a href="http://moodle.informatika.uni-mb.si/login/index.php">Moodle</a></li>					
							</ul>
				</aside><!-- end of sidebar1 -->
			
			<section id="content"><!-- #content -->
				<div class="newsbox">		
	        		<h2>Zagovori diplom na FERI</h2>			
				</div>
				
			</section></br></br></br></br></br></br></br></br></br></br></br>
			<script type="text/javascript">
				loadXMLDoc();
			</script>
		</div>
</body>
</html>
